package com.qf.factory;

import org.springframework.beans.factory.FactoryBean;

import java.util.HashMap;
import java.util.Map;

/**
 * @author zjw
 * @description
 * @date 2021/9/27$ 16:59$
 */
public class MapFactory implements FactoryBean<Map> {

    @Override
    public Map getObject() throws Exception {
        Map map = new HashMap();
        map.put("name","嘿嘿嘿");
        map.put("gender","男");
        return map;
    }

    @Override
    public Class<?> getObjectType() {
        return Map.class;
    }
}
